package com.fqgj.xjd.user.dao;

import com.fqgj.common.api.Page;
import com.fqgj.common.base.BaseMapper;
import com.fqgj.xjd.user.entity.UserContactAddressBookEntity;

import java.util.Date;
import java.util.List;

/**
 * User: zhangxingyun
 * Date: 2017-07-20
 * Time: 18:38:53.071
 */

public interface UserContactAddressBookDao extends BaseMapper<UserContactAddressBookEntity> {

    UserContactAddressBookEntity selectByUserCode(String userCode);

    List<UserContactAddressBookEntity> selectFirstAndLastByUserCode(String userCode);

    UserContactAddressBookEntity selectByUserCodeAndAppCode(String userCode, String appCode);

    List<UserContactAddressBookEntity> selectListByPage(Page page, Date endDate);

    int deleteByUserCode(String userCode);

    int updateByUserCode(String userCode, String deviceContactUrl, String smsUrl, Long id);
}